Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Hashi DVN Adapter offchain logic #1

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

zengzengzenghuy
Copy link
Collaborator

What

  1. Deployment and initialization scripts
  2. Off chain server logic:
    • MessageRelayedEventListener: Listen to Hashi Message Relay event
    • DVNEventListener: Listen to DVN related event, store hash on Hashi Message Relay Adapter, call verifyMessageHash for the message.
  3. Update LayerZeroV2 packages in contracts.

yarn.lock Outdated Show resolved Hide resolved
offchain/src/index.js Outdated Show resolved Hide resolved
offchain/src/index.js Outdated Show resolved Hide resolved
offchain/src/index.js Outdated Show resolved Hide resolved
offchain/src/index.js Outdated Show resolved Hide resolved
offchain/src/listener/EventListener.js Outdated Show resolved Hide resolved
offchain/src/listener/EventListener.js Outdated Show resolved Hide resolved
offchain/src/listener/EventListener.js Outdated Show resolved Hide resolved
offchain/src/listener/EventListener.js Outdated Show resolved Hide resolved
offchain/src/sender/HashiDVNSender.js Outdated Show resolved Hide resolved
this.account = privateKeyToAccount(privateKey);
}

getAddress(chainName) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this address?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is for reading deployed addresses in config.js

offchain/src/client/ViemClient.js Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants